//
//  ViewController.m
//  XiangCaoJiaYuan
//
//  Created by tongj on 2017/8/15.
//  Copyright © 2017年 tongj. All rights reserved.
//

#import "ViewController.h"
#import "HomePageViewController.h"
//#import "IndustryController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.translucent = NO;
    UIButton* but = [UIButton buttonWithType:UIButtonTypeCustom];
    but.frame = CGRectMake(10, 100, 100, 30);
    [but setTitle:@"我的界面" forState:UIControlStateNormal];
    [but setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [but addTarget:self action:@selector(ButClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:but];
}
-(void)ButClick{
    
//    IndustryController* Home = [[IndustryController alloc]init];
    HomePageViewController* Home = [[HomePageViewController alloc]init];
    
    [self.navigationController pushViewController:Home animated:YES];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
